<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function Student(name,age,gender){
            this.name=name;
            this.age=age;
            this.gender=gender;
        }
        var stu1=new Student('lisi',20,'men');
        var stu2=new Student('tom',25,'men');
        console.log(stu1);
        console.log(stu2);
        console.log(stu1.constructor);
        console.log(stu1==stu2);
    </script>
</head>
<body>
    
</body>
</html>